<?php
echo "已知三角形的边求对边\n";
echo "请输入三角形的边角边并用逗号隔开\n";
$count=fscanf(STDIN,"%f,%f,%f%s",$a,$beta,$b,$others);
var_dump($count);
if($count>3){echo "请按规则 ";
} else if($count<3){
    echo "请按规则 ";
    die();
}
$c=round(sqrt($a*$a+pow($b,2)-2*$a*$b*cos($beta*pi()/180)),2);
echo "三角形对边长度=$c\n";